@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 0 20px;
  background-color: #fff;
  margin: 20px 30px 20px 30px;
  border-radius: 5px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  .el-row {
    .el-form--box {
      margin: 14px 0;
    }
    .el-form---box {
      .el-form-item {
        margin: 0;
      }
    }
  }
  .box-el-form {
    .el-form-item {
      margin-bottom: 0;
    }
  }
  .header-search-box {
    // padding: 10px 0;
    padding-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f2f2f5;
    .text {
      color: $headColor;
      font-size: $headFZ;
      margin-bottom: 10px;
    }
    .el-form--inline .el-form-item:last-child {
      margin-right: 0;
    }
    .el-input {
      margin-right: 10px;
    }
    .el-range-editor--small {
      margin-right: 10px;
    }
    .el-form-item {
      margin-bottom: 10px;
    }
  }
  .el-box-min {
    // min-height: 740px;
    min-height: calc(100vh - 219px);
    padding-bottom: 20px;
    // border-left: 2px solid #F2F2F5;
  }
  .engineeing {
    border-left: 0;
  }
}

//角色
.role-container {
  padding-bottom: 20px;
  min-height: calc(100vh - 170px);
  .dept-statistics {
    margin-bottom: 20px;
    font-size: 14px;
  }
}

.app-container-box {
  background-color: #f0f2f5;
  padding: 0;
  box-shadow: none;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );
  .subtitle {
    font-size: 20px;
    color: #fff;
  }
  &.draft {
    background: #d0d0d0;
  }
  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;
  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//左边树的样式
.zTree-box {
  height: 666px;
  overflow: hidden;
  overflow-y: auto;
  overflow-x: auto;
}

.head-container .el-input--small {
  margin-top: 18px;
}

.ztree {
  padding: 0 5px !important;
}

.ztree-acc {
  padding: 7px 5px !important;
}

.ztree-wrapper {
  .el-input {
    margin: 16px auto;
  }
  .no-data {
    text-align: center;
    font-size: 14px;
    color: #909399;
  }
}

//
@media screen and(max-width:770px) {
  .zTree-box {
    height: 200px;
    margin-bottom: 22px;
  }
}

.develop-box {
  top: 50%;
  left: 50%;
  position: absolute;
  margin-top: -200px;
  margin-left: -200px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  .box-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
  }
  .text {
    font-size: 30px;
    text-align: center;
  }
}

.select-region {
  .el-dialog__body {
    display: flex;
    max-height: 300px;
    overflow: hidden;
    overflow-y: auto;
  }
  .content_wrap {
    width: 40%;
  }
  .content_wrap2 {
    width: 60%;
  }
  .content_wrap2 {
    font-size: 14px;
    font-family: Verdana, Arial, Helvetica, AppleGothic, sans-serif;
    color: #333;
    .content_wrap2-text {
      margin-top: 11px;
    }
  }
}

.dialog-footer2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  .table-box-page {
    width: 50%;
    .pagination-container {
      background-color: #e6e8eb;
      box-sizing: content-box;
      margin-bottom: 0;
      margin-top: 0;
    }
  }
}

.pagination-container .el-pagination {
  width: 100%;
}

//
.select-room-else {
  .el-table {
    max-height: 250px;
    overflow: hidden;
    overflow-y: auto;
  }
  .el-table::before {
    height: 0;
  }
}

.cards-2:hover a {
  color: rgb(64, 158, 255) !important;
}

//手机端
@media only screen and (max-width: 767px) {
  .el-col-xs-offset-1 {
    margin-left: 0;
    margin-bottom: 20px;
  }
  .el-col-xs-24 {
    margin-bottom: 20px;
  }
  #myChart {
    div {
      width: 100% !important;
      canvas {
        width: 100% !important;
      }
    }
  }
  .circle-box p {
    text-align: center;
  }
  .index-box2 {
    margin-top: 0 !important;
  }

  .tags-view-container .tags-view-wrapper .tags-view-item:first-of-type {
    margin-left: 10px !important;
  }
  .app-container {
    margin: 0 10px 20px 10px;
    .el-box-min {
      border-left: 0;
    }
  }
  .top-left .left-list .list-content {
    width: 100% !important;
  }
  .home-box {
    padding: 0 !important;
  }
  .copyright {
    margin-top: 0 !important;
    margin-bottom: 20px;
  }
}

.content-area-box {
  max-height: 250px;
  overflow: hidden;
  overflow-y: auto;
}

// 首页
.top-box {
  .el-card__body {
    display: flex;
    align-items: center;
    justify-content: space-around;
    .top-box-content {
      .content-list {
        text-align: center;
        .list-p1 {
          font-size: 24px;
          font-weight: 600;
        }
        .list-p2 {
          font-size: 14px;
        }
      }
    }
  }
}

.abnormal {
  padding: 0 20px !important;
  .el-table__body-wrapper {
    overflow: hidden;
    position: relative;
    height: 75px;
    overflow-y: auto;
  }
}

.top-right {
  .el-card__header {
    border-bottom: 0;
  }
  .el-card__body {
    margin-top: 20px;
    .el-badge__content.is-fixed {
      right: 25px;
    }
  }
  .top-r-box {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    .box-list {
      .box-list-img {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f2f2f5;
        border: 1px solid rgba(164, 164, 164, 1);
        img {
          width: 24px;
          height: 24px;
        }
      }
      p {
        font-size: 14px;
        margin: 0;
        text-align: center;
      }
      .p1 {
        margin-top: 10px;
      }
      .p2 {
        margin-top: 10px;
        font-size: 12px;
        color: #b4b4b4;
      }
      &:hover {
        .box-list-img {
          border: 1px solid #1890ff;
        }
        .p1 {
          color: #1890ff;
        }
        .p2 {
          color: #1890ff;
        }
      }
    }
  }
}

.top-right2 {
  margin-top: 20px;
}

.top-left {
  margin-top: 16px;
  .el-card__header {
    border-bottom: 0;
  }
  .el-card__body {
    margin: 33px 0;
  }
  .left-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .left-list .list-content {
    width: 47%;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .con-text {
      display: flex;
      width: 90%;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #979797;
      font-size: 20px;
      .p2 {
        font-weight: 600;
      }
      .p3 {
        font-size: 18px;
        font-weight: 500;
      }
    }
  }
  .left-list .list-content .con-img img {
    width: 32px;
    height: 32px;
    margin-right: 20px;
  }
}

.index-box2 {
  .box2-left {
    .el-card__body {
      height: 160px;
      align-items: center;
    }
  }
  margin-top: 20px;
  .index-box-list {
    .el-card__header {
      border: 0;
    }
    height: 337px;
    .box-list-notice {
      list-style: none;
      padding: 0;
      height: 100%;
      li {
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        .li-text2 {
          color: #b4b4b4;
        }
      }
    }
    .box-list-notice li:hover {
      color: #1890ff;
    }
  }
  .no-notice {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 20px;
    img {
      margin-bottom: 20px;
    }
    .text {
      font-size: 18px;
      color: #b4b4b4;
    }
  }
  .no-abnormal {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 10px;
    img {
      width: 32px;
      height: 32px;
      margin-bottom: 10px;
    }
    .text {
      font-size: 16px;
      color: #b4b4b4;
    }
  }
}

.grid-content {
  .el-card__body {
    padding: 0;
  }
  .el-card__header {
    border-bottom: 0;
  }
  .el-timeline-item__wrapper {
    text-align: left;
  }
  .el-progress-circle {
    height: 80px !important;
    width: 80px !important;
  }
}

//版权
.copyright {
  font-size: 14px;
  text-align: center;
  margin-top: 20px;
  color: #999999;
}

.container-box .copyright {
  margin-bottom: 20px;
}

.position-copy {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, -50%);
}

// 系统设置模块
.sys-el-form {
  .el-form-item {
    margin-top: 20px;
  }
}

.img-lg {
  background-color: #f0f2f5;
}

//弹窗
.el-dialog__wrapper {
  .el-dialog {
    border-radius: 5px;
    .el-dialog__header {
      background-color: $headerBgc;
      border-radius: 5px 5px 0 0;
      padding: 14px 20px;
    }
    .el-dialog__footer {
      background-color: $headerBgc;
      border-radius: 0 0 5px 5px;
      padding: 14px 20px;
      .dialog-footer {
        margin-top: 0;
      }
    }
  }
}

// 日期时间插件
.el-range-editor--medium.el-input__inner {
  height: 32px;
}

.el-form-item--medium .el-form-item__content {
  line-height: 32px;
}

.el-range-editor--medium .el-range__icon,
.el-range-editor--medium .el-range__close-icon {
  line-height: 24px;
}

.iframe {
  .el-dialog {
    .el-dialog__body {
      height: 500px;
      display: flex;
    }
  }
  .el-divider--vertical {
    height: 100%;
    width: 2px;
  }
  .iframe-box {
    height: 100%;
    width: 100%;
  }
}

//
.textContent {
  .el-form-item__content {
    display: flex;
  }
}
.tags-view-container {
  // border-bottom: 1px solid #d8dce5;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.el-table__body-wrapper {
  caret-color: rgba(0, 0, 0, 0);
  overflow: hidden;
  position: relative;
  height: 75px;
  overflow-y: auto;
}
.el-table__body-wrapper::-webkit-scrollbar,
#monitor-right::-webkit-scrollbar,
.el-row::-webkit-scrollbar {
  width: 5px;
  height: 10px;
}
.el-table__body-wrapper::-webkit-scrollbar-thumb,
#monitor-right::-webkit-scrollbar-thumb,
.el-row::-webkit-scrollbar-thumb {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#7ce7fd),
    to(#257dff)
  );
  background: linear-gradient(180deg, #7ce7fd, #257dff);
  border-radius: 30px;
  box-shadow: inset 2px 2px 2px hsla(0, 0%, 100%, 0.25),
    inset -2px -2px 2px rgba(0, 0, 0, 0.25);
}
.el-table__body-wrapper::-webkit-scrollbar-track,
#monitor-right::-webkit-scrollbar-track,
.el-row::-webkit-scrollbar-track {
  background: linear-gradient(90deg, #134172, #143868 1px, #103260 0, #07234b);
}

.el-dropdown-menu {
  background: #257dff;
  // box-shadow: rgba(29, 72, 196, 0.8) 0px 0px 25px 3px inset;
  border-color: rgba(29, 72, 196, 0.4);
}
.el-dropdown-menu__item:not(.is-disabled):hover,
.el-dropdown-menu__item:focus {
  background-color: rgba(29, 72, 196, 0.8);
  color: #fff;
}
.el-dropdown-menu__item {
  color: #fff;
  font-size: 18px !important;
}
.el-popper[x-placement^="bottom"] .popper__arrow::after {
  top: 1px;
  margin-left: -6px;
  border-top-width: 0;
  border-bottom-color: #257dff;
}
